package com.stellar.circle.convert;

import com.stellar.circle.basic.entity.SChatMessage;
import com.stellar.circle.controller.admin.sChatMessage.vo.SChatMessageRequestPageVO;
import com.stellar.circle.controller.admin.sChatMessage.vo.SChatMessageRequestVO;
import com.stellar.circle.controller.admin.sChatMessage.vo.SChatMessageResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 私聊消息表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-06-12 21:21:22
 */
@Mapper
public interface SChatMessageConvert {

    SChatMessageConvert INSTANCE = Mappers.getMapper(SChatMessageConvert.class);

    SChatMessage convert(SChatMessageResponseVO responseVO);

    SChatMessage convert(SChatMessageRequestVO requestVO);

    SChatMessage convert(SChatMessageRequestPageVO requestPageVO);

    SChatMessageResponseVO convert(SChatMessage entity);

    List<SChatMessageResponseVO> convertEntityToRespList(List<SChatMessage> entities);
}
